Perfect Matchings in Õ(n) Time in Regular Bipartite Graphs
نویسندگان
چکیده
We consider the well-studied problem of finding a perfect matching in d-regular bipartite graphs with 2n vertices and m = nd edges. While the best-known algorithm for general bipartite graphs (due to Hopcroft and Karp) takes O(m √ n) time, in regular bipartite graphs, a perfect matching is known to be computable in O(m) time. Very recently, the O(m) bound was improved to O(min{m, n 2.5 lnn d }) expected time, an expression that is bounded by Õ(n). In this paper, we further improve this result by giving an O(min{m, n 2 ln n d }) expected time algorithm for finding a perfect matching in regular bipartite graphs; as a function of n alone, the algorithm takes expected time O((n lnn)). To obtain this result, we design and analyze a two-stage sampling scheme that reduces the problem of finding a perfect matching in a regular bipartite graph to the same problem on a subsampled bipartite graph with O(n lnn) edges. The first-stage is a sub-linear time uniform sampling that reduces the size of the input graph while maintaining certain structural properties of the original graph. The second-stage is a non-uniform sampling that takes linear-time (on the reduced graph) and outputs a graph with O(n lnn) edges, while preserving a matching with high probability. This matching is then recovered using the Hopcroft-Karp algorithm. While the standard analysis of Hopcroft-Karp also gives us an Õ(n) running time, we present a tighter analysis for our special case that results in the stronger Õ(min{m, n 2 d }) time mentioned earlier. Our proof of correctness of this sampling scheme uses a new correspondence theorem between cuts and Hall’s theorem “witnesses” for a perfect matching in a bipartite graph that we prove. We believe this theorem may be of independent interest; as another example application, we show that a perfect matching in the support of an n×n doubly stochastic matrix with m non-zero entries can be found in expected time Õ(m+ n). ∗Departments of Management Science and Engineering and (by courtesy) Computer Science, Stanford University. Email: [email protected]. Research supported by NSF ITR grant 0428868, NSF CAREER award 0339262, and a grant from the Stanford-KAUST alliance for academic excellence. †Institute for Computational and Mathematical Engineering, Stanford University. Email: [email protected]. Research supported by a Stanford Graduate Fellowship. ‡Department of Computer and Information Science, University of Pennsylvania, Philadelphia PA. Email: [email protected]. Supported in part by a Guggenheim Fellowship, an IBM Faculty Award, and by NSF Award CCF-0635084.
منابع مشابه
Perfect Matchings in Regular Bipartite Graphs in O ( n log n ) Time
The standard algorithm for general (not necessarily regular) bipartite graphs is O(m √ n) [HK73]. For regular bipartite graphs, deterministic algorithms exist showing that perfect matchings are computable in O(m) time, and that if the graph is d-regular, this bound can be improved to O(min{m, n2 d }) [GKK10] Our focus will be on a randomized algorithm by Goel, Kapralov, and Khanna [GKK09] which...
متن کاملResults and open problems in matchings in regular graphs
This survey paper deals with upper and lower bounds on the number of k-matchings in regular graphs on N vertices. For the upper bounds we recall the upper matching conjecture which is known to hold for perfect matchings. For the lower bounds we first survey the known results for bipartite graphs, and their continuous versions as the van der Waerden and Tverberg permanent conjectures and its var...
متن کاملEla Results and Open Problems in Matchings in Regular Graphs
This survey paper deals with upper and lower bounds on the number of k-matchings in regular graphs on N vertices. For the upper bounds we recall the upper matching conjecture which is known to hold for perfect matchings. For the lower bounds we first survey the known results for bipartite graphs, and their continuous versions as the van der Waerden and Tverberg permanent conjectures and its var...
متن کاملCounting 1-Factors in Regular Bipartite Graphs
perfect matchings. (A perfect matching or 1-factor is a set of disjoint edges covering all vertices.) This generalizes a result of Voorhoeve [11] for the case k = 3, stating that any 3-regular bipartite graph with 2n vertices has at least ( 4 3) n perfect matchings. The base in (1) is best possible for any k: let αk be the largest real number such that any k-regular bipartite graph with 2n vert...
متن کاملSome perfect matchings and perfect half-integral matchings in NC
We show that for any class of bipartite graphs which is closed under edge deletion and where the number of perfect matchings can be counted in NC, there is a deterministic NC algorithm for finding a perfect matching. In particular, a perfect matching can be found in NC for planar bipartite graphs and K3,3-free bipartite graphs via this approach. A crucial ingredient is part of an interior-point...
متن کامل